Bugs

Due to the use of a yacc parser, the error messages are not very helpful (essentially only 'syntax error'), but this is difficult to correct.